package com.kukudexin.producerdata;

/**
 * @author: 酷酷的鑫
 * @Date: 2022/1/24 9:58
 * @description:
 */
public class Test {
    public static void main(String[] args) {
        ValueOP obj = new ValueOP();
        ValueOP obj2 = new ValueOP();
        ProducerThread p1 = new ProducerThread(obj);
//        ProducerThread p2 = new ProducerThread(obj);
//        ProducerThread p3 = new ProducerThread(obj);
        ConsumerThread c1 = new ConsumerThread(obj);
//        ConsumerThread c2 = new ConsumerThread(obj);
//        ConsumerThread c3 = new ConsumerThread(obj2);
        p1.setName("P1");
//        p2.setName("P2");
//        p3.setName("P3");
        c1.setName("c1");
//        c2.setName("c2");
//        c3.setName("c3");
        p1.start();
//        p2.start();
//        p3.start();
        c1.start();
//        c2.start();
//        c3.start();
    }
}
